@layout("/common/_form.html",{js:["/assets/nanParam/nanParam_edit.js"],plugins:["ue"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){
<style>
    .layui-upload-wrap-a{
        vertical-align: middle;
    }
</style>
<form class="layui-form" id="nanParamForm" lay-filter="nanParamForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label layui-form-required">标题</label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label ">备注</label>
                        <div class="layui-input-block">
                            <input id="description" name="description" placeholder="请输入备注" type="text" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label ">类型</label>
                        <div class="layui-input-block">
                            <select name="type" lay-filter="type" id="type">
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12" style="display: none;" id="content0">
                        <label class="layui-form-label layui-form-required">内容</label>
                        <div class="layui-input-block">
                            <input name="content0" placeholder="请输入内容" type="text" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12" style="display: none;" id="content1">
                        <label class="layui-form-label layui-form-required">内容</label>
                        <div class="layui-input-block">
                            <script id="container" name="content1" type="text/plain"></script>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12" style="display: none;" id="content2">
                        <label class="layui-form-label layui-form-required">内容</label>
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-icon layui-icon-picture" id="image">上传文件</button>
                            <div class="layui-upload-wrap layui-upload-wrap-a">
                                <input type="hidden" name="content2" />
                                <a class="layui-upload-img" target="_blank" id="imageImgPreview"></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="cancel">&emsp;取消&emsp;</button>
    </div>

</form>

@}
